package com.example.zk2_lx.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import java.util.List;

@Dao
public interface MessageDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertMessage(MessagedbEntity entity);
    @Query("select * from message where type=:type")
    List<MessagedbEntity> queryBy(int type);
}
